﻿@model VOD.Models.Video
<h1>《@Model.Name》视频文件管理</h1>
@if (false) { <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>}
<style type="text/css">
    .listBlock{background:white;position:absolute;z-index:1002;}
</style>
    @Html.HiddenFor(v=>v.VideoID)
    <a id="fileAdd" href="javascript:void(0);"><span>添加文件</span></a>
    <a id="btnSorting" href="javascript:void(0);"><span>调整顺序</span></a>
    <div id="List">
        <ul id="MovieList">
            @*电影列表*@
        </ul>
        <p>
            <input id="btnSortSave" type="button" style="display:none;" value="保存" />
            <input id="btnReset" type="button" style="display:none;" value="重置" />
        </p>
    </div>
<div id="Dialog" title="添加文件">
    <label for="集数" style="display: block; margin-top: 16px;">集数</label>
    <input id="fileNum" class="ui-widget-content ui-corner-all" readonly="readonly" style="padding: .4em;width: 40px;" type="text" value="" />
    <label for="文件地址" style="display: block; margin-top: 16px;">文件地址</label>
    <textarea id="fileUrl" class="ui-widget-content ui-corner-all" style="padding: .4em;width: 98%;height:100px;"></textarea>
</div>
@Content.Script("jquery.blockUI.js",Url)
<script type="text/javascript">
    var filesListUrl="@Url.Action("FilesList","VideoMgr",new{id= Model.VideoID})";
    var createFileUrl="@Url.Action("CreateFile","VideoMgr")";
    var deleteFileUrl="@Url.Action("DeleteFile", "VideoMgr")";
    var editFileUrl="@Url.Action("EditFile","VideoMgr")";
    var videoID = @Model.VideoID;
    var sortFilesUrl="@Url.Action("SortFiles","VideoMgr")";
</script>
@Content.Script("VOD/FilesList.js",Url)
